﻿@{
    var user = new ShenLanCMS.Models.User();
    if (Session["users"] != null)
    {
        user = Session["users"] as ShenLanCMS.Models.User;
        if (user.Status == 2 || user.UserName.ToLower() == "administrator")
        {
          @:[ 欢迎您,@user.UserName <a href="/user/myinfo">个人信息</a> <a href="/admin/index">后台管理</a> @Html.ActionLink("注销", "logoff", "user")]
        }
        else
        {
          @:[ 欢迎您,@user.UserName <a href="/user/myinfo">个人信息</a> @Html.ActionLink("注销", "logoff", "user") ]
        }
    }
    else
    {       
    @:[ @Html.ActionLink("登录", "logon", "user") / @Html.ActionLink("注册", "reg", "user")]
    }
}
